import { Helper } from  "../../helper"

Page<{
  helper: Helper;
}, 
{
}>({
  data: {
    helper: new Helper(),
  },
  onLoad(query) {
    // 页面加载
    console.info(`Page onLoad with query: ${JSON.stringify(query)}`);

  },
  onReady() {
    // 页面加载完成
  },
  onShow() {
    //let totpInfos = this.data.helper.getTotpInfo();
  },
  onUnload() {
    // 页面被关闭
    console.log("Page Unloaded")
  },
  onTitleClick() {
    // 标题被点击
  },
  onPullDownRefresh() {
    // 页面被下拉
  },
  onReachBottom() {
    // 页面被拉到底部
  },
  onShareAppMessage() {
    // 返回自定义分享信息
    return {
      title: 'Authenticator',
      desc: 'generating the Time-based One Time Password',
      path: 'pages/index/setting/index',
    };
  }
});
